package com.graduation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.common.domain.dto.PageDTO;
import com.graduation.pojo.dto.FavoriteToggleDTO;
import com.graduation.pojo.po.Favorite;
import com.graduation.pojo.query.FavoriteQuery;
import com.graduation.pojo.vo.FavoriteVO;

public interface FavoriteService extends IService<Favorite> {

    PageDTO<FavoriteVO> pageFavorites(FavoriteQuery query);

    /**
     * 切换收藏状态（收藏/取消收藏）
     */
    void toggleFavorite(FavoriteToggleDTO dto);

    /**
     * 检查是否已收藏
     */
    Boolean checkFavorite(Long userId, Long documentId, Long caseId);

}
